
const http = require('http')
// 1. 创建server对象 
const server = http.createServer()
// 2. 绑定请求事件
server.on('request',(req,res)=>{
    console.log(`请求过来了。。。`);
})
// 3. 绑定端口号
server.listen(3000,()=>{
    console.log(`server is running...`);
})